
<script type='text/javascript'>
	function _delete(){
		if(confirm('really?')) {
			app.post('/services/companies/delete/{{company.slug}}', {}, function(result){
				if(result == 'ok')	{
					app.load('/services/companies');
				}
				else {
					alert(result);
				}
			});
		}
	}
</script>

<div id='menu'>
	<ul>
		<li><a href='javascript:app.load("/services/companies")'>go back</a></li>
	</ul>
</div>

<div id='content'>
	
	<h1>delete company</h1>

	<table class='summary-table'>
		<tr><td class='left'>name</td><td>{{company.name}}</td></tr>
		<tr><td class='left'>email</td><td>{{company.email}}</td></tr>
		<tr><td class='left'>website</td><td>{{company.website}}</td></tr>
		<tr><td class='left'>phone</td><td>{{company.phone}}</td></tr>
		<tr><td class='left'>address</td><td>{{company.address}}</td></tr>
		<tr><td class='left'>description</td><td>{{company.description}}</td></tr>
		<tr><td></td><td><a href='javascript:_delete()'>delete</a></td></tr>
	</table>
	
</div>